/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconUser: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M512 576c120.096 0 240 27.04 359.456 80.896A96 96 0 0 1 928 744.416V832a64 64 0 0 1-64 64H160a64 64 0 0 1-64-64v-87.584a96 96 0 0 1 56.544-87.52C272 603.04 391.904 576 512 576z m0 64c-110.784 0-221.76 25.024-333.152 75.264a32 32 0 0 0-18.848 29.152V832h704v-87.584a32 32 0 0 0-18.848-29.152C733.76 665.024 622.784 640 512 640z m0-544a224 224 0 1 1 0 448 224 224 0 0 1 0-448z m0 64a160 160 0 1 0 0 320 160 160 0 0 0 0-320z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconUser.defaultProps = {
  size: 18,
};

export default IconUser;
